package factory.factory;import factory.simpleFactory.Pizza;/** * Created by Administrator on 2018-10-22. */public class NYStylePizzaStore extends  PizzaStore {    Pizza createPizza(String type) {        Pizza pizza = null;          if(type.equals("cheese")){              pizza = new NYCheesePizza();          }else if(type.equals("clam")){              pizza = new NYClamPizza();          }          return pizza;    }}